<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich">
<ui:composition>


<ul class="panellist">
<a4j:repeat value="#{cats}" var="cat">
	<li>
	<rich:panelMenu iconExpandedGroup="disc"
		iconCollapsedGroup="disc" styleClass="panelbar" iconExpandedTopGroup="chevronUp"
		iconCollapsedTopGroup="chevronDown" iconGroupTopPosition="left" mode="ajax">
				<rich:panelMenuGroup label="#{cat.fullname}" styleClass="panelbarFuntion">
					<rich:panelMenuItem styleClass="panelMenuItem">
					<ui:include src="/templates/default/components-group.xhtml" >
			 				<ui:param name="funcs" value="#{cat.functions}" />
		 		    </ui:include> 
					</rich:panelMenuItem>
				</rich:panelMenuGroup>
	</rich:panelMenu>
	</li>
</a4j:repeat>
</ul>

</ui:composition>
</html>

